package com.roadjava.favorite.service;



import com.roadjava.favorite.bean.entity.FavoriteDO;
import com.roadjava.favorite.bean.entity.FavoriteEQ;

import java.util.List;

public interface FavoriteService {
    void addFavorite(FavoriteEQ favorite);

    List<FavoriteDO> getUserFavorites(Long userId);
    Long getFavoriteCount(Long resourceId);
    void removeFavoritesByResource(Long resourceId);

    void removeFavoriteByResourceAndUser(Long resourceId, Long id);

    boolean isFavoritedByUser(Long resourceId, Long Id);
}
